home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
irc_i_dodatki
/
cserver
/
cserver.amirx
next >
Wrap
Text File
|
1997-03-28
|
855b
|
40 lines
/*
** Connect Thread for AmIRC v1.2a
** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
** Author: Matthew Gregan (kinetik@es.co.nz)
*/
Options Results
Parse Arg Args
Server = Word(Args,1)
Port = Word(Args,2)
Nick = Word(Args,3)
Autojoin = Word(Args,4)
Arguments = 'Connect'
If Server = '' Then Do
'Echo P='d2c(27)'b«Error» Usage: /CServer <server> [port] [nick] [channel to autojoin]'
Exit
End
If ~Datatype(Port,N) Then Do
Nick = Port
Port = ''
End
If Autojoin = '' Then Do
If SubStr(Nick,1,1) = '#' Then Do
Autojoin = Nick
Nick = ''
End
End
If Server ~= '' Then Arguments = Arguments' Server='Server
If Port ~= '' Then Arguments = Arguments' Port='Port
If Nick ~= '' Then Arguments = Arguments' Nick='Nick
If Autojoin ~= '' Then Arguments = Arguments' Autojoin='Autojoin
Address Command 'AmIRC 'Arguments